class Bug:
    legs = 0
    distance = 0

    def __init__(self, name, legs):
        self.name = name
        self.legs = legs

    def walk(self):
        self.distance += 1

    def tostring(self):
        return self.name + "has" + str(self.legs) + "legs" + "and taken" + str(self.distance) + "steps."

    def out(self):
        return self.name

    def iin(self, a):
        self.name = a

a = Bug('e', 8)

a.iin(3)
print(a.out())

